﻿using System;

namespace Ast.Framework.Forms
{
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
    public class FormMetadataAttribute : Attribute, IFormMetadata
    {
        public FormMetadataAttribute(string type)
        {
            Order = 1000; // default order
            Type = type;
        }

        public string Type { get; private set; }

        public bool IsTabForm { get; set; }

        public int Order { get; set; }
    }
}